/**
 *
 * 乾坤微应用路由文件
 */

import { RouteRecordRaw } from "vue-router";
const Layout = () => import("@/layouts/index.vue");
const MircoAppComponent = () => import("@/views/mirco-app/index.vue");

const MircoAppAsyncRoutes: RouteRecordRaw[] = [
  {
    path: "/microApp",
    name: "MicroApp",
    meta: {
      title: "微应用"
    },
    component: Layout,
    children: [
      {
        path: "history",
        name: "MicroHistoryDemo",
        meta: {},
        children: [
          {
            path: ":catchAll(.*)",
            name: "MicroHistoryAppDemox",
            component: MircoAppComponent
          }
        ]
      },
      {
        path: "vue2",
        name: "MicroHashVue2AppDemo",
        children: [
          {
            path: ":catchAll(.*)",
            name: "MicroHashVue2AppDemoc",
            component: MircoAppComponent
          }
        ]
      }
    ]
  }
];

export default MircoAppAsyncRoutes;
